const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.userId,
  userName: state => state.user.userName,
  realName: state => state.user.realName,
  userSource: state => state.user.userSource,
  // roles: state => state.user.roles,
  role: state => state.user.role,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  permission_routes: state => state.permission.routes,
}
export default getters
